package com.jijs.mywsdl;

import javax.jws.WebService;

/**
 * 服务端其实不需要接口也可以，接口只是为了指明annotation的，通过wsdl生成的，准确规范。
 * @author jjs
 *
 */
@WebService(endpointInterface="com.jijs.mywsdl.IMyCalc", targetNamespace="http://www.jijs.com/mywsdl/",
		wsdlLocation="META-INF/wsdl/mywsdl.wsdl")
public class MyCalcImpl implements IMyCalc {

	@Override
	public int add(int a, int b, String licenseInfo) {
		System.out.println("======="+licenseInfo+"=======");
		System.out.println(a+b);
		return a+b;
	}

	@Override
	public double divide(int num1, int num2) {
		System.out.println(num1/num2);
		return num1/num2;
	}

}
